﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;

namespace BusinessObject
{
    public class StudentBO
    {
        private List<Student> students;

        public StudentBO(List<Student> manager)
        {
            this.students = manager;
        }

        public List<Student> Students
        {
            get { return this.students; }
            set { this.students = value; }
        }

        public void AddStudent(Student student)
        {
            if (student == null)
            {
                throw new ArgumentNullException("student");
            }

            Students.Add(student);
        }

        public void RemoveStudent(Student student)
        {
            if (student == null)
            {
                throw new ArgumentNullException("student");
            }
            Students.Remove(student);
        }
    }
}
